package com.panopset.flywheel;

import java.io.StringWriter;

/**
 * Command that is created from a directive.
 *
 * @author Karl Dinwiddie
 */
public class TemplateDirectiveCommand extends TemplateCommand {

    public TemplateDirectiveCommand(String source, String innerPiece,
            Template template) {
        super(source, innerPiece, (innerPiece.length() > 2) ? innerPiece
                .substring(template.flywheel.directive.length() + 2) : "",
                template);
    }

    @Override
    public void resolve(StringWriter sw) {
        // does nothing here.
    }

}
